package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.system.PayMethodValue;
import com.ms.p2p.provider.PayMethodValueProvider;
import com.ms.p2p.service.impl.PayMethodValueServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class PayMethodValueProviderImpl implements PayMethodValueProvider {
    @Autowired PayMethodValueServiceImpl payMethodValueService;

    public int update(PayMethodValue map) {
        return payMethodValueService.update(map);
    }

    public List<PayMethodValue> findByPaymentId(String id) {
        return payMethodValueService.findByPaymentId(id);
    }

    public PayMethodValue findByName(String name) {
        return payMethodValueService.findByName(name);
    }
}
